package online.heycm.multipledb.domain.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author heycm
 * @since 2022-05-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_profile")
public class UserProfileEntity extends Model<UserProfileEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    private String username;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
